package com.coderedma.beans.factory.config;

import com.coderedma.beans.factory.HierarchicalBeanFactory;
import com.coderedma.core.convert.ConversionService;
import com.coderedma.utils.StringValueResolver;

/**
 * @Author coderedma
 * @Desc
 * @createTime 2024/7/29 14:27
 * @since 1.0.0
 */
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry {
    /**
     * @param beanPostProcessor
     */
    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例bean
     */
    void destroySingletons();

    void addEmbeddedValueResolver(StringValueResolver valueResolver);

    String resolveEmbeddedValue(String value);

    void setConversionService(ConversionService conversionService);

    ConversionService getConversionService();
}
